import cma

def fObj(x):
	return abs(3*x[0] - 2*x[1]**2 + 6 - x[0]*x[1])

x0 = [0,0]
sd0 = 10
res_cma = cma.fmin(fObj, x0, sd0)
print res_cma
print type(res_cma)
print [res_cma[i] for i in xrange(len(res_cma))]
print res_cma[0]
